Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@spare/bracket
Advanced tools
A function returning string length, s.t. skipping ansi (escape) codes, correcting length of astral symbols.
$ npm install @spare/quote
import { quote } from '@spare/quote'
const list = [
'tolstoy',
'\u001b[3;4;31mhatsu\u001b[0m',
'\u{1F3C3}2\u{1F525}7',
]
for (let tx of list) {
console.log(`[${tx}] [length] (${tx.length}) [quote] (${quote(tx)})`)
}
Copyright (c) 2019-present, Haoyang (Vincent) Wang
FAQs
Add parenthesis/bracket/brace/angle-bracket to string
The npm package @spare/bracket receives a total of 286 weekly downloads. As such, @spare/bracket popularity was classified as not popular.
We found that @spare/bracket demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.